package com.pets.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 我的课程
 * </p>
 *
 * @author 小陳同學
 * @since 2024-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("my_course")
@ApiModel(value="MyCourse对象", description="我的课程")
public class MyCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "我的课程ID")
    @TableId(value = "my_course", type = IdType.AUTO)
    private Integer myCourse;

    @ApiModelProperty(value = "课程id")
    private Integer courseId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上课时间")
    private LocalDateTime classTime;

    @ApiModelProperty(value = "所需会员id")
    private Integer memberId;

    @ApiModelProperty(value = "消耗会员次数")
    private Integer consumptionFrequency;

    @ApiModelProperty(value = "预约人id")
    private Integer userId;

}
